<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>出撃傾向グラフ</title>
	<!--[if IE]><script type="text/javascript" src="./html5jp/excanvas/excanvas.js"></script><![endif]-->
	<script type="text/javascript" src="./html5jp/graph/radar.js"></script>
	<script type="text/javascript">

	window.onload = function() {
		//URLParameterを取得
		var arg = new Object;
		var pair=location.search.substring(1).split('&');
		for(i=0;pair[i];i++) {
			var kv = pair[i].split('=');
			arg[kv[0]]=kv[1];
		}
		var rc = new html5jp.graph.radar("rader_chart_sample");
		if( ! rc ) { return; }
//		var items = [
//			["TITLE", 10, 20, 30, 40, 50]
//		];
		var items = [
			[ITEMS_20], 
			[ITEMS_ALL]
		];
		var params = {
			aCap: ["格", "近", "射", "遠", "狙"], 
			aCapFontSize: "20px", 
			aMin: -10, 
			chartShape: "polygon", 
			sLabel: false, 
			legend: true
		}
		
		rc.draw(items, params);
	};
	</script>
</head>
<body>
	<table style="height:100%;">
		<tr>
			<td style="vertical-align: middle;">
				<div>
					<canvas width="400" height="300" id="rader_chart_sample"></canvas>
				</div>
			</td>
		</tr>
	</table>
</body>
</html>